<template>
    <div>
        <button @click="openNote">按钮</button><br/>
        <button @click="exportPdf">pdf导出测试</button>
    </div>
</template>

<script>

    export default {
        name: 'HButton',
        methods: {
            openNote() {
                this.$toast({
                    text: '弹框提示'
                    duration: 2000
                });
            },
            exportPdf() {
                let jspdf = this.JSPDF;
                const doc = new jspdf();
                doc.text("Hello world!", 10, 10);
                doc.save("a4.pdf");
            }
        },
    }
</script>

<style lang="scss" scoped>

</style>